import java.io.IOException;
import java.io.InputStream;

public final class bz extends InputStream {

	private InputStream b;
	public ae a;

	public bz(ae ae1, InputStream inputstream) {
		a = ae1;
		b = inputstream;
	}

	public final int available() throws IOException {
		return b.available();
	}

	public final void close() throws IOException {
		b.close();
	}

	public final void reset() {
	}

	public final void mark(int i) {
	}

	public final boolean markSupported() {
		return false;
	}

	public final int read() throws IOException {
		int i = b.read();
		if (i == -1)
			return -1;
		if (a != null)
			i = a.a((byte) i) & 0xff;
		return i;
	}

	public final int read(byte abyte0[], int i, int j) throws IOException {
		int k = b.read(abyte0, i, j);
		if (k > 0 && a != null)
			a.a(abyte0, i, k);
		return k;
	}
}